import request from '@/utils/request'

export function sfloan(ruleForm) {
  return request({
    url: '/financial/sfloan/savesf',
    method: 'get',
    params: ruleForm
  })
}

export function listSfLoan(ruleForm) {
  return request({
    url: '/financial/sfloan/listSfLoan',
    method: 'get',
    params: ruleForm
  })
}

  export function ByProductList() {
    return request({
      url: '/financial/sfloan/ByProductList',
      method: 'get'
    })
  }

  export function getbyIdContract(id) {
    return request({
      url: '/financial/sfloan/getbyIdContract',
      method: 'get',
      params: id
    })
  }

  /*收房合同查询*/
  export function getSfloanList(formInline) {
    return request({
      url: '/financial/sfloan/financialList',
      method: 'get',
      params: formInline
    })
  }

  export function listFinancing(query) {
    return request({
      url: '/financial/rentInstall/financialList',
      method: 'get',
      params: query
    })
  }
